/*
 * @Author: zhuxiaoyi
 * @Date: 2023-12-29 14:19:40
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2024-01-01 17:29:47
 * @Description:
 */
import { Entity, Column, PrimaryGeneratedColumn ,CreateDateColumn ,UpdateDateColumn  } from 'typeorm';

@Entity('seg_task')
export class Task {

  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  imageFile: string;

  @Column()
  ruleFile: string;

  @Column()
  status: string;

  @Column()
  progress: number;
  
  @CreateDateColumn({
    type: 'timestamp',
  })
  createdDate: Date;

  @UpdateDateColumn({
    type: 'timestamp',
  })
  updateDate: Date;
}
